<%-- 
    Document   : load
    Created on : Mar 3, 2012, 5:23:45 PM
    Author     : Evgen
--%>

<%@page import="java.util.List"%>
<%@page import="javax.jdo.Query"%>
<%@page import="ua.org.mtgatherer.entities.TcgPlayerDeck"%>
<%@page import="javax.jdo.PersistenceManager"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@page import="ua.org.mtgatherer.persistence.PMF"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" "http://www.w3.org/TR/html4/frameset.dtd">
<html>
   <head>
      <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
      <title>JSP Page</title>
   </head>
   <body>
      <%
            PersistenceManager pm = PMF.get().getPersistenceManager();
            Query query = pm.newQuery(TcgPlayerDeck.class);

            List<TcgPlayerDeck> tcgPlayerDeckList =
                    (List<TcgPlayerDeck>) query.execute();

            for (TcgPlayerDeck deck : tcgPlayerDeckList) {
               %>
               <h2><%= deck.getTitle()%></h2><br>
               <%
            }
        

      %>
      <h1>Hello World!</h1>
   </body>
</html>
